<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<#include "../../common/res.html">
	</head>
	
	<body class="bg">
		<#include "../../common/top.html">
		
		<div class="content">
			<div class="block-nav">
				<#include "../../common/nav.html">
			</div>
			<div class="block-content" >
				
				<div class="block-content-nav">
					<span class="title">专题管理 </span>
				</div>
				
				<div class="block-content-description">
					<span>
						模板管理 添加/修改
					</span>
				</div>
				
				<div class="block-content-content">
					<form class="fm-form" action="${s.base}/template/doTemplateMerge.html" method="post" enctype="multipart/form-data">
						<input type="hidden" name="id" value="${entity.id!}"/>
						<input type="hidden" name="idSbj" value="${entity.idSbj!}"/>
						<input type="hidden" name="dirname" value="${entity.dirname!}"/>
						<input type="hidden" name="createtime" value="${(entity.createtime?string("yyyy-MM-dd HH:mm:ss"))!}"/>
						<ul>
							<li>
								<label>模板名称</label>
								<input name="name" type="text" style="width:452px;" value="${entity.name!}"/>
							</li>
							<li>
								<label>模板分类</label>
								<!-- <input name="category" type="text" style="width:452px;" value="${entity.category!}"/> -->
								<td>
									<select id="category" name="category" >
										<option value ="template" <#if entity.category=="template"> selected="selected" </#if>>一般模板</option>
										<option value ="resource" <#if entity.category=="resource"> selected="selected" </#if>>资源文件</option>
									</select>
								</td>
							</li>
							<li>
								<label>关键字</label>
								<input name="keyWord" type="text" style="width:452px;" value="${entity.keyWord!}"/>
								<span class="helptext">全局唯一，不能重复，用于检索，不能为空。(修改该值会造成原引用该模板的静态化页查找不到)</span>
							</li>
							<li>
								<label>作者</label>
								<input name="creater" type="text" style="width:452px;" value="${entity.creater!}"/>
							</li>
							<li>
								<label>说明备注 </label>
							</li>
							<li style="margin-top:-15px;">
								<label></label>
								<textarea name="content" rows="3" cols="60" style="width:452px;">${entity.content!}</textarea>
								<span class="helptext">长度 &lt; 100 字</span>
							</li>
							<li>
								<label>模板压缩包 </label>
								<input type="file" name="zipFile" ACCEPT="text/html,aplication/zip" onchange="javascript:if(!(this.value.indexOf('.html')==-1||this.value.indexOf('.zip')==-1))alert('请选择html或zip文件！');"/>
							</li>
							<li>
								<label>静态化参数</label>
								<input name="staticParameters" type="text" style="width:452px;" value="${entity.staticParameters!}"/>
								<span class="helptext">用于生成静态化页面使用(如:key1=value2&key2=value2)</span>
							</li>
						</ul>
						
						<div style="margin-left:75px;margin-top: 20px;">
							<input class="btn" type="submit" value="保 存"/>
						</div>
					</form>
				</div>
			</div>
			<div class="clearfloat"></div>
		</div>
		
		<#include "../../common/footer.html">
		
	</body>
	
</html>
